Quick Discovery
When working in Formula, List, Model (text) Parameters, and KPIs, the Quick Discovery option is enabled once you've saved your logic.
Click the Quick Discovery button to open your logic in Discover right away. As usual, click the Fx button in the Measures panel, find your logic in the folder tree, and add it to the query.